import request from '@/utils/request'

// 获取部门信息
export const getDepartMentList = () => request.get('/company/department')

// 新增部门
export const newAddDepartment = data => request.post('/company/department', data)

// 根据ID查询部门详情
export const getDepartDetailById = (id) => request.get(`/company/department/${id}`)

// 根据ID修改部门详情
export const putDepartDetailById = (data) => request.put(`/company/department/${data.id}`, data)

// 根据ID删除部门详情
export const deleteDepartDetailById = (id) => request.delete(`/company/department/${id}`)
